package goover.unit01;

public class Person02 {
    public static void main(String[] args){
        Person01 p1 = new Person01(1,"zhangsan","男");
        Person01 p2 = new Person01(1,"zhangsan","男");
        boolean b = p1.equals(p2);
        System.out.println(b);
        System.out.println(p1);
        System.out.println(p2);
    }
    class Cat extends Person01{
        public int add;
        public Cat(int id, String name, String sex,int add) {
            super(id, name, sex);
            this.add = add;
        }
    }
}
